package day0624;

import java.util.Arrays;
import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner  s=new Scanner(System.in);
        System.out.println("请输入容量:");
        int le=s.nextInt();
        double[]  a=new double[le];
        double sum=0;
        for (int i = 0; i < a.length; i++) {
            a[i]=s.nextDouble();
            sum=sum+a[i];
        }
        System.out.println(sum/a.length);
    }
}
